package com.woniu.microworkorderserver.workgroupmag.service;

import com.github.pagehelper.PageInfo;
import com.woniu.microcommonsserver.entity.WorkGroupInfoEntity;
import com.woniu.microcommonsserver.param.PageRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkGroupService {

    /**
     * 新增数据
     * */
    long save(WorkGroupInfoEntity workGroupInfoEntity, List<Integer> list);

    /**
     * 分页查询
     * */
    PageInfo<WorkGroupInfoEntity> findPage(PageRequest page,WorkGroupInfoEntity entity);

    /**
     * 删除数据
     * */
    void delete(long workGroupId);

    /**
     * 修改数据
     * */
    void update(WorkGroupInfoEntity entity,List<Integer> list);
}
